home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / etc / apm / scripts.d / hwclock < prev   
Text File  |  2008-06-19  |  235b  |  17 lines

  1. #!/bin/sh
  2. # Preserve the system clock around suspend/resume.
  3.  
  4. INIT="/etc/init.d/hwclock.sh"
  5. [ -x "${INIT}" ] || exit 0
  6.  
  7. case "${1},${2}" in
  8. (suspend,*)
  9.     "${INIT}" stop
  10.     ;;
  11. (resume,suspend)
  12.     "${INIT}" start
  13.     ;;
  14. esac
  15.  
  16. exit 0
  17.